package com.gxy.learn.design.model.create.builder;

/**
 * @description: 摩拜单车
 * @author: gaoxueyong
 * @Date: 2022/11/7 14:14
 */
public class MobileBikeBuilder extends Builder{
    @Override
    public void setName() {
        bike.setName("摩拜单车");
    }

    /**
     * 构建车架
     *
     * @return void
     * @Author gaoxueyong
     * @Date 2:13 下午 2022/11/7
     * @Param []
     **/
    @Override
    public void builderFrame() {
        bike.setFrame("碳纤维");
    }

    /**
     * 构建车座
     *
     * @return void
     * @Author gaoxueyong
     * @Date 2:13 下午 2022/11/7
     * @Param []
     **/
    @Override
    public void builderSeat() {
        bike.setSeat("真皮车座");
    }

    /**
     * 构建自行车
     *
     * @return com.gxy.learn.design.model.create.builder.Bike
     * @Author gaoxueyong
     * @Date 2:13 下午 2022/11/7
     * @Param []
     **/
    @Override
    public Bike createBike() {
        return bike;
    }
}
